package com.linhngua.code.gwt.client.data.people;

import java.io.Serializable;
import java.util.Collection;
import java.util.Date;

import com.linhngua.code.gwt.client.data.LimitedSizeSet;
import com.linhngua.code.gwt.client.data.shop.Shop;

public class User implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String name;

	private String password;

	private String imageUrl;

	private Date joinDate;

	protected Collection<Shop> lastViewShops;

	public User() {
		lastViewShops = new LimitedSizeSet<Shop>(10);
	}

	public User(String name, String password, Date joinDate) {
		super();
		this.name = name;
		this.password = password;
		this.joinDate = joinDate;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getJoinDate() {
		return joinDate;
	}

	public void setJoinDate(Date joinDate) {
		this.joinDate = joinDate;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public Collection<Shop> getLastViewShops() {
		return lastViewShops;
	}

}
